package study.java.jdk.jdk7.s2_switch;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

@Slf4j
public class switch_02_Test {

    @Test
    public void test1() {
        Sex sex = Sex.MAN;
        switch (sex) {
            case MAN:
                log.info("男人");
                break;
            case WOMAN:
                log.info("女人");
                break;
            default:
                log.info("不好说");
                break;
        }
    }

    private enum Sex {
        MAN, WOMAN
    }
}
